home *** CD-ROM | disk | FTP | other *** search
- VERSION 2.00
- Begin Form Form1
- Caption = "Form1"
- ClientHeight = 2235
- ClientLeft = 3165
- ClientTop = 2190
- ClientWidth = 6240
- Height = 2640
- Left = 3105
- LinkMode = 1 'Source
- LinkTopic = "Form1"
- ScaleHeight = 2235
- ScaleWidth = 6240
- Top = 1845
- Width = 6360
- Begin ListBox List1
- Height = 1980
- Left = 120
- TabIndex = 0
- Top = 120
- Width = 6015
- End
- DefInt A-Z
- Sub Form_Load ()
- Show
- 'make huge array
- recsize = 128 'array element size
- numrecs = 100 'number of elements
- HugeDIM handle, status, recsize, numrecs 'make array
- If status > 0 Then MsgBox HugeERR(status), 48
- 'save a string into huge array
- recdata$ = "Some nifty data for record 1"
- HugePUT handle, status, 1, recdata$
- 'save a string into huge array
- recdata$ = "Some nifty data for record 2"
- HugePUT handle, status, 2, recdata$
- If status > 0 Then MsgBox HugeERR(status), 48
- 'save a string into huge array
- recdata$ = "Some nifty data for record 3"
- HugePUT handle, status, 3, recdata$
- If status > 0 Then MsgBox HugeERR(status), 48
- 'zap string
- recdata$ = ""
- 'read strings back and prove it works
- HugeGET handle, status, 1, recdata$
- If status > 0 Then
- MsgBox HugeERR(status), 48
- Else
- list1.AddItem recdata$
- End If
- HugeGET handle, status, 2, recdata$
- If status > 0 Then
- MsgBox HugeERR(status), 48
- Else
- list1.AddItem recdata$
- End If
- HugeGET handle, status, 3, recdata$
- If status > 0 Then
- MsgBox HugeERR(status), 48
- Else
- list1.AddItem recdata$
- End If
- 'free up memory & close array *very important!*
- HugeZAP handle, status
- If status > 0 Then MsgBox HugeERR(status), 48
- End Sub
-